IPRemoveRoute


C Specification

#include <dolphin/ip.h>

BOOL IPRemoveRoute ( const u8* dst, const u8* netmask, const u8* gateway );

Description

IPRemoveRoute() removes the specified route from the routing table. If there are several matches, the least specific one (i.e., one whose mask has the fewest one bits) is chosen.

Arguments

dst The destination IP address.
netmask The netmask for the destination address. Specify IPAddrAny if don't care.
gateway The gateway address for the destination. Specify IPAddrAny if don't care. Generally, gateway parameter should point to IPAddrAny.

Return Values

TRUE if an entry is removed from the routing table. Otherwise FALSE.

See Also